﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Models
{
    //redis集合的名称仓库
    public static class StaticConfigRidesName
    {

        /// <summary>
        /// 用户信息集合
        /// </summary>
        public static string UserInfo_Hash() => "UserInfo_Hash";

        /// <summary>
        /// 文章评论集合
        /// </summary>
        public static string ArticleComment_List(int ArtcleId) => $"Article_{ArtcleId}_Comment_List";

        /// <summary>
        /// 文章点赞集合
        /// </summary>
        public static string ArticleLike_Set(int ArtcleId) => $"Article_{ArtcleId}_Like_Set";

        /// <summary>
        /// 评论点赞集合
        /// </summary>
        public static string ArticleCommentLike_Set(int ArtcleId, long CommentId) => $"Article_{ArtcleId}_{CommentId}_Comment_Set";

        /// <summary>
        /// 用户关注集合
        /// </summary>
        public static string UserPay_Hash(int UserId) => $"Pay_{UserId}_Hash";

        /// <summary>
        /// 用户关注者集合
        /// </summary>
        public static string UserPayPassive_Hash(int UserId) => $"PayPassive_{UserId}_Hash";

        /// <summary>
        /// 用户空间同步时间集合
        /// </summary>
        public static string Synchronize_Hash() => "Synchronize_Hash";

        /// <summary>
        /// 最新点赞集合
        /// </summary>
        public static string LatestLikes_List(int UserId) => $"LatestLikes_{UserId}_List";

        /// <summary>
        /// 最新回复集合
        /// </summary>>
        public static string LatestPay_List(int UserId) => $"LatestPay_{UserId}_List";

        /// <summary>
        /// 最新消息集合
        /// </summary>
        public static string LatestMessage_List(int UserId) => $"LatestMessage_{UserId}_List";

        /// <summary>
        /// 用户修改账号的授权集合
        /// </summary>
        /// <returns></returns>
        public static string Authorization_Set() => "Authorization_Set";

        /// <summary>
        /// 用户邮箱集合
        /// </summary>
        public static string UserMail_Hash() => "UserMail_Hash";

        /// <summary>
        /// 搜索关键字集合
        /// </summary>
        /// <returns></returns>
        public static string SearchKeywords_Hash() => "SearchKeywords_Hash";
    }
}
